package com.nj.liandi.common.exception;

/** description: 没有库存异常
 * version: 1.0
 * date: 2021/11/2 10:30
 * */
public class NoStockException extends RuntimeException{
    private Long skuId;
    public NoStockException(Long skuId){
        super("商品id:"+skuId+":没有库存了");
    }
    public NoStockException(String msg){
        super(msg);
        this.msg =msg;
    }
    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
